package com.example.dubboconsumer.controller;

import com.test.dubbo.remote.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试controller
 *
 * @author izumiqi
 * @date 2021/12/1
 */
@RestController
public class TestController {

    @Autowired
    private HelloService helloService;

    @GetMapping(value = "/hello")
    public String sayHello(String name){
        return helloService.sayHello(name);
    }
}
